#!/bin/bash

find .  -path "./node_modules" -a -prune  -o -name "*.[t,j]s"   -mtime 0 -print


filelist=`find .  -path "./node_modules" -a -prune  -o -name "*.[t,j]s"   -mtime 0 -print`
echo $filelist

read -n 1 -p "Are you ok,y/n? > " char
printf "\n"  
echo $char
if [ $char == 'y' ] 
    then
        tar -zcvf $(basename $PWD).tar.gz $filelist
fi
